package com.lagou.edu.service;

import com.alibaba.fastjson.JSONObject;
import com.lagou.edu.utils.Result;

/**
 * @author zjy
 */
public interface CodeService {

    /**
     * 生产验证码
     * @param emailAddress
     * @return
     */
    Result generateCode(String emailAddress);

    /**
     * 校验验证码
     * @param emailAddress
     * @param code
     * @return
     */
    Integer validateCode(String emailAddress,String code);
}
